package com.example.wm.controller;

import com.example.wm.common.Result;
import com.example.wm.common.ResultData;
import com.example.wm.entity.ComponeyManegement;
import com.example.wm.service.ComponeyMagegeService;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/ComponeyManage")
//公司管理
public class ComponeyManageController {
@Resource
private ComponeyMagegeService componeyMagegeService;
    @Transactional
    @GetMapping("/get")

    public Result get(){
             List<ComponeyManegement> list=componeyMagegeService.list();

        return ResultData.success("操作成功",list);
    }
}
